package com.mall.project.info.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mall.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author Sam
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("info_photo")
@ApiModel(value="Photo对象", description="图片表")
public class Photo extends Convert {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "图片ID")
    @TableId(value = "photo_id", type = IdType.AUTO)
    private Long photoId;

    @ApiModelProperty(value = "外表ID")
    private String tableId;

    @ApiModelProperty(value = "外表类型")
    private String tableType;

    @ApiModelProperty(value = "随机数")
    private String random;

    @ApiModelProperty(value = "文件类型")
    private String mimeType;

    @ApiModelProperty(value = "图片路径")
    private String url;

    @ApiModelProperty(value = "图片名称")
    private String name;

    @ApiModelProperty(value = "存储空间类型")
    private String bucket;

    @ApiModelProperty(value = "图片状态")
    private String status;

    @ApiModelProperty(value = "优先级")
    private Integer orderNum;

    @ApiModelProperty(value = "上传人ID")
    private Integer userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
